﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Capa_Dominio.Reservacion>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	.:. Systema Studio7i .:.
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Registrar una Reservacion</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Datos para la Reservacion</legend>
             <div class="editor-label">
				Sala Ensayo
			</div>
			<div class="editor-field"> 
				<%: Html.DropDownList("codSala", (IEnumerable<SelectListItem>)TempData["Sala"])%>
			</div>
             <div class="editor-label">
				Cliente
			</div>
			<div class="editor-field"> 
				<%: Html.DropDownList("codCliente", (IEnumerable<SelectListItem>)TempData["Cliente"])%>
			</div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FechaReservacion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FechaReservacion) %>
                <%: Html.ValidationMessageFor(model => model.FechaReservacion) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.HoraReservacion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.HoraReservacion) %>
                <%: Html.ValidationMessageFor(model => model.HoraReservacion) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.TotalHoras) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.TotalHoras) %>
                <%: Html.ValidationMessageFor(model => model.TotalHoras) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Observacion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Observacion) %>
                <%: Html.ValidationMessageFor(model => model.Observacion) %>
            </div>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

